package com.wandian.game.frames
{
	
	import flash.display.Graphics;
	import flash.display.Sprite;
	
	import com.wandian.ui.controls.Button;
	import com.wandian.ui.controls.Label;
	import com.wandian.ui.controls.LabelButton;
	import com.wandian.ui.controls.TextInput;
	import com.wandian.utils.UIHelper;
	import com.wandian.game.GameData;

	public class LoginFrame extends Sprite
	{
		public var ip:TextInput;
		public var port:TextInput;
		public var playerName:TextInput;
		public var password:TextInput;
		public var gameID:TextInput;
		public var tableID:TextInput;
		public var checkCode:TextInput;
		public var btn_login:LabelButton;
		public var lbl_info:Label
		public var info:Label

		public function LoginFrame()
		{
			/*UIHelper.createLabel(this, "IP:", 0, 0);
			ip=UIHelper.createTextInput(this, 60, 0);
			ip.text=GameData.ip
			UIHelper.createLabel(this, "port:", 0, 50);
			port=UIHelper.createTextInput(this, 60, 50);
			port.text=GameData.port.toString();
			UIHelper.createLabel(this, "name:", 0, 100);
			playerName=UIHelper.createTextInput(this, 60, 100);
			playerName.text=GameData.name
			UIHelper.createLabel(this, "password:", 0, 150);
			password=UIHelper.createTextInput(this, 60, 150);
			password.text=GameData.password
			UIHelper.createLabel(this, "GameID:", 0, 200);
			gameID=UIHelper.createTextInput(this, 60, 200);
			gameID.text=GameData.gameID.toString();
			UIHelper.createLabel(this, "TableID:", 0, 250);
			tableID=UIHelper.createTextInput(this, 60, 250);
			tableID.text=GameData.tableID.toString();
			UIHelper.createLabel(this, "checkCode:", 0, 300);
			checkCode=UIHelper.createTextInput(this, 60, 300);*/
			btn_login=UIHelper.createLabelButton(this, "登录", 320, 0)
			lbl_info=UIHelper.createLabel(this, "", 320, 50);
		}

		public function showInfo(text:String):void
		{
			lbl_info.text=text;
		}

	}
}
